package org.jeecg.modules.demo.crm.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @Description: 项目数据看板
 * @Author: jeecg-boot
 * @Date:   2025-07-18
 * @Version: V1.0
 */
@Data
@TableName("c_project_preview")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="c_project_preview对象", description="项目数据看板")
public class CSubProjectPreview implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;
	/**项目*/
	@Excel(name = "项目", width = 15, dictTable = "c_project_application", dicText = "project_name", dicCode = "id")
	@Dict(dictTable = "c_project_application", dicText = "project_name", dicCode = "id")
    @ApiModelProperty(value = "项目")
    private String projectId;
	/**子项目ID*/
	@Excel(name = "子项目ID", width = 15, dictTable = "c_sub_project", dicText = "sub_project_name", dicCode = "id")
	@Dict(dictTable = "c_sub_project", dicText = "sub_project_name", dicCode = "id")
	@ApiModelProperty(value = "子项目ID")
	private String subProjectId;
	/**子项目*/
	private String subProjectTitle;

	@ApiModelProperty(value = "权限用户")
	@Excel(name = "权限用户", width = 15, dictTable = "sys_user", dicText = "username", dicCode = "id")
	@Dict(dictTable = "sys_user", dicText = "username", dicCode = "id")
	private String userId;

	/**分包商*/
	@ApiModelProperty(value = "分包商")
	@Excel(name = "分包商", width = 15, dictTable = "c_contractor_info", dicText = "contact_name", dicCode = "id")
	@Dict(dictTable = "c_contractor_info", dicText = "contact_name", dicCode = "id")
	private String contactId;

	/**所属库*/
	@Excel(name = "所属库", width = 15, dictTable = "c_library", dicText = "name", dicCode = "id")
	@Dict(dictTable = "c_library", dicText = "name", dicCode = "id")
	@ApiModelProperty(value = "所属库")
	private String libraryId;



	/**付款合计*/
	@Excel(name = "付款合计", width = 15)
	@ApiModelProperty(value = "付款合计")
	private BigDecimal paymentTotal;
	/**收票合计*/
	@Excel(name = "收票合计", width = 15)
	@ApiModelProperty(value = "收票合计")
	private BigDecimal receiptsAndTaxTotal;


	@ApiModelProperty(value = "报价")
	private String isProjectQuote;

	@ApiModelProperty(value = "报价记录")
	private Integer projectQuoteCount;

	@ApiModelProperty(value = "是否传子项目合同")
	private String isContract;

	@ApiModelProperty(value = "未完成任务")
	private String isTask;

	@ApiModelProperty(value = "任务 条数")
	private Integer taskCount;

	@ApiModelProperty(value = "未验收")
	private String isAcceptance;

	@ApiModelProperty(value = "验收记录条数")
	private Integer acceptanceCount;


}
